import { defHttp } from '/@/utils/http/axios';

export const testUrl = '/devopsDoHostMachine';

/**
 * 主机表api
 *
 * @author sakanayy
 * @date 2023/06/29 15:15
 */
export class DevopsDoHostMachineApi {
  /**
   * 获取分页列表
   *
   * @author sakanayy
   * @date 2023/06/29 15:15
   */
  static findPage(params) {
    return defHttp.get({ url: '/devopsDoHostMachine/page', params });
  }

  /**
   * 新增
   *
   * @author sakanayy
   * @date 2023/06/29 15:15
   */
  static add(params) {
    return defHttp.post({ url: testUrl , params}, { isTransformResponse: false });
  }

  /**
   * 修改
   *
   * @author sakanayy
   * @date 2023/06/29 15:15
   */
  static edit(params) {
    return defHttp.post({ url: testUrl , params}, { isTransformResponse: false });
  }

  /**
   * 删除
   *
   * @author sakanayy
   * @date 2023/06/29 15:15
   */
  static delete(params) {
    return defHttp.post({ url: testUrl , params}, { isTransformResponse: false });
  }

  /**
   * 详情
   *
   * @author sakanayy
   * @date 2023/06/29 15:15
   */
  static detail(params) {
    return defHttp.get({ url: '/devopsDoHostMachine/detail', params });
  }
}
